﻿using AVCUMPlatform.DAL.Interface;
using AVCUMPlatform.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using AVCUMPlatform.BLL.Interface;
using AVCUMPlatform.Entities;

namespace AVCUMPlatform.BLL.Implement
{
    internal class SourceBLL : BaseBLL<Source>, ISourceBLL
    {
        /// <summary>
        /// 消息DAL
        /// </summary>
        private ISourceDAL _sourceDAL;
        private ISourceDAL sourceDAL
        {
            get
            {
                if (_sourceDAL == null)
                {
                    _sourceDAL = DALContainer.Resolve<ISourceDAL>();
                }
                return _sourceDAL;
            }
        }
        public override void SetDal()
        {
            Dal = sourceDAL;
        }
    }
}
